package com.ruoyi.vqms.service.impl;

import com.ruoyi.vqms.domain.VQMSStorehouseLocation;
import com.ruoyi.vqms.mapper.VQMSStorehouseLocationMapper;
import com.ruoyi.vqms.service.IVQMSStorehouseLocationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 仓库库位 服务层实现
 */
@Service
public class VQMSStorehouseLocationServiceImpl implements IVQMSStorehouseLocationService {
    @Autowired
    private VQMSStorehouseLocationMapper vqmsStorehouseLocationMapper;

    @Override
    public List<VQMSStorehouseLocation> selectList(VQMSStorehouseLocation vqmsStorehouseLocation) {
        return vqmsStorehouseLocationMapper.selectList(vqmsStorehouseLocation);
    }

    @Override
    public int add(VQMSStorehouseLocation vqmsStorehouse) {
        return vqmsStorehouseLocationMapper.add(vqmsStorehouse);
    }

    @Override
    public VQMSStorehouseLocation getById(Long id) {
        return vqmsStorehouseLocationMapper.getById(id);
    }

    @Override
    public int update(VQMSStorehouseLocation vqmsStorehouse) {
        return vqmsStorehouseLocationMapper.update(vqmsStorehouse);
    }

    @Override
    public int delete(Long[] ids) {
        return vqmsStorehouseLocationMapper.delete(ids);
    }

    @Override
    public int countByFactoryId(Long factoryId) {
        return vqmsStorehouseLocationMapper.countByFactoryId(factoryId);
    }

    @Override
    public int countByStorehouseId(Long storehouseId) {
        return vqmsStorehouseLocationMapper.countByStorehouseId(storehouseId);
    }

    @Override
    public VQMSStorehouseLocation getByName(String name) {
        return vqmsStorehouseLocationMapper.getByName(name);
    }
}
